/*
 * Copyright (C) 2012 VinaVAC. All rights reserved.
 */
package org.vinavac.mob.mbean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.vinavac.bean.AbstractSessionBean;
import org.vinavac.bean.StudyGroupSessionBean;
import org.vinavac.entity.StudyGroup;

/**
 *
 * @author Quang <quangtin3@gmail.com>
 */
@ManagedBean(name = "studyGroupMobileBean")
@SessionScoped
public class StudyGroupMobileBean extends AbstractMobileBean<StudyGroup> {

    @EJB
    private StudyGroupSessionBean ejbSessionBean;

    public StudyGroupMobileBean() {
        super();
    }

    @Override
    protected StudyGroup emptyEntity() {
        return new StudyGroup();
    }

    @Override
    protected AbstractSessionBean<StudyGroup> getSessionBean() {
        return ejbSessionBean;
    }

    public StudyGroup find(String key) {
        return getSessionBean().find(key);
    }
}
